From 50ae0b8f02c034e60d4cbb504620dfa1575a836f Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 28 Jul 2025 09:19:42 +0000
Subject: (박서영) 설계 document Numbering Rule 개발-최겸 업로드
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../docu-list-rule/document-class/page.tsx         | 52 ++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 app/[lng]/engineering/(engineering)/docu-list-rule/document-class/page.tsx

(limited to 'app/[lng]/engineering/(engineering)/docu-list-rule/document-class/page.tsx')

diff --git a/app/[lng]/engineering/(engineering)/docu-list-rule/document-class/page.tsx b/app/[lng]/engineering/(engineering)/docu-list-rule/document-class/page.tsx
new file mode 100644
index 00000000..5c2c600e
--- /dev/null
+++ b/app/[lng]/engineering/(engineering)/docu-list-rule/document-class/page.tsx
@@ -0,0 +1,52 @@
+import * as React from "react";
+import { Shell } from "@/components/shell";
+import { Skeleton } from "@/components/ui/skeleton";
+import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton";
+import { getDocumentClassCodeGroups } from "@/lib/docu-list-rule/document-class/service";
+import { DocumentClassTable } from "@/lib/docu-list-rule/document-class/table/document-class-table";
+import { InformationButton } from "@/components/information/information-button";
+import { searchParamsDocumentClassCache } from "@/lib/docu-list-rule/document-class/validation";
+
+interface IndexPageProps {
+  searchParams: Promise<any>;
+}
+
+export default async function IndexPage(props: IndexPageProps) {
+  const searchParams = await props.searchParams;
+
+  const promises = Promise.all([
+    getDocumentClassCodeGroups(
+      searchParamsDocumentClassCache.parse(searchParams)
+    ),
+  ]);
+
+  return (
+    <Shell className="gap-2">
+      <div className="flex items-center justify-between space-y-2">
+        <div>
+          <div className="flex items-center gap-2">
+            <h2 className="text-2xl font-bold tracking-tight">Document Class 관리</h2>
+            <InformationButton pagePath="evcp/docu-list-rule/document-class" />
+          </div>
+          {/* <p className="text-muted-foreground">
+            Document Class를 관리합니다.
+          </p> */}
+        </div>
+      </div>
+      <React.Suspense fallback={<Skeleton className="h-7 w-52" />}></React.Suspense>
+      <React.Suspense
+        fallback={
+          <DataTableSkeleton
+            columnCount={4}
+            searchableColumnCount={1}
+            filterableColumnCount={1}
+            cellWidths={["10rem", "20rem", "10rem", "8rem"]}
+            shrinkZero
+          />
+        }
+      >
+        <DocumentClassTable promises={promises} />
+      </React.Suspense>
+    </Shell>
+  );
+} 
\ No newline at end of file
-- 
cgit v1.2.3

